package service;

import dao.AdminDao;
import entity.AdminEnity;

import java.sql.SQLException;

/**
 * @author:XIAOXIN
 * @date:2025/04/27
 **/
public class AdminService {
    AdminDao adminDao=new AdminDao();

    public AdminEnity getOneAdminUser() throws SQLException {
        return adminDao.getOneAdminUser();
    }

    public boolean updateAdmin(int id, String name, String password) throws SQLException {
        return adminDao.updateAdmin(id,name,password);
    }
}
